package com.tang.param_check.controller;

import com.tang.param_check.common.login.LoginManager;
import com.tang.param_check.domain.LoginDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/12/17 20:01
 * @Desc
 * @Remarks
 */
@RestController
public class LoginController {
    @Autowired
    private LoginManager loginManager;

    @RequestMapping("/login")
    public String test(@RequestBody LoginDTO loginDTO) {
        System.out.println(loginDTO);

        return loginManager.handle(loginDTO);
    }

}
